<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%String path=request.getContextPath()+"/"; %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
a:link {
			color: #147
		}/* 未访问的链接 */
		a:visited {
			color: #111
		}/* 已访问的链接 */
		a:hover {
			color: #233
		}/* 鼠标移动到链接上 */
		a:active {
			color: #332
		}/* 选定的链接 */
	#bd{
		width:100%;
		height:43px;
		border: solid 0px;
	}
	#ksh{
		float: right;
		margin-right:5%;
		font-size: 20px;
		font-family: "正楷";
		
	}
	#ksh p{
		margin-top: 5px;
	}
	#logo{
		float: left;
	}
	#out{
		float:right;
		font-size: 20px;
		font-family: "正楷";
	}
</style>
</head>
<body>
<div id="bd">
	<div id="logo">
		<img alt="图片被吃了" src="../resources/logo.png" width="250px">
	</div>
	<div id="out"><a href="<%=path %>fkout">退出登录</a></div>
	<div id="ksh">
	<div id="yonghu"></div>
		<script type="text/javascript">
		function map(key){
			var re="小明";
			for(i=0;i<document.cookie.split(";").length;i++){
				if(key==document.cookie.split(";")[i].split("=")[0].trim()){	
					re=document.cookie.split(";")[i].split("=")[1];
				//	alert(i+"  "+key+"   "+document.cookie.split(";")[i].split("=")[0]+"    "+re);
				}
			}
			return re;
			
		}
		
		document.getElementById("yonghu").innerHTML=map("name")+"已登录";
		//alert(map("name"));
		</script>
		
	</div>
</div>
</body>
</html>